Ezekiel 40-48 describe the millennial temple with sacrifices?
The battle of Ezek 38-39 is prior to the seven year peace treaty with Israel. The seven year tribulation or the seven years that Israel has left starts at that peace treaty. The temple described in Ezek 40 is the temple during the seven years that Israel has left of the 490 years. The millennium doesnt start until the end of the seven year tribulation.