This was the casting down-overthrow of the devil. Jeremiah, Isaiah, Ezekiel and others elaborate.. Christ and Paul refer to this time and called it ‘before the foundation of the world’. Peter describes three different heaven/earth ages. The first heaven earth age was flooded too.
Genesis 3 forward describes the environmental clean-up required to make this earth a habitable place for flesh bodies.
> “The sun was created in Genesis 1:1.”
[Genesis 1:1]
“1 In the beginning God created the heaven and the earth.”
[Genesis 1:16-19]
16 And God made two great lights; the greater light to rule the day, and the lesser light to rule the night: he made the stars also.
17 And God set them in the firmament of the heaven to give light upon the earth,
18 And to rule over the day and over the night, and to divide the light from the darkness: and God saw that it was good.
19 And the evening and the morning were the fourth day.