If you are looking for a scientific approach try listening to Andrew Huberman’s 6-part series all about sleep with Dr Matt Walker.
Link to episode 1 on youtube, its also on Spotify: https://www.youtube.com/watch?v=-OBCwiPPfEU
Huberman’s Sleep Toolkit: https://www.hubermanlab.com/newsletter/toolkit-for-sleep
Pretty sure at this point reddit is keeping copies of all your edits.