In this 12 minute video from DTBM Dr. John Barnett discusses When Angels were created and when Satan was cast out of Heaven.
The Pentateuch was written in simple language for slaves.
Genesis 1: 31 31God saw all that he had made, and it was very good. And there was evening, and there was morning-the sixth day.
God made everything good including the Angels. Angels were created before the foundations of the earth. Listen to what Dr. Barnett has to say.