Super late to this party but having worked multiple 3rd shift jobs, the things that have helped me sleep are:
- Make sure you have the correct mattress/pillow for your sleeping position/sleeping temperature (most important imo)
- Turn on any filters on your phone/laptop/tablet that filter out blue light as early as you can
- Don't watch any screens at all at least 30 minutes before bed
- Melatonin usually helps but helps more if you work at night imo
- Make room as dark and as cool as possible
- Stay hydrated and keep bedtime as consistent as possible
- Take care of as much stuff as possible so you don't go to bed with a bunch of crap on your mind.