Set a regular sleep schedule by going to bed and getting up at the same time every day. This will help you avoid sleeplessness and get better sleep. Set up a relaxing routine before bed, and stay away from screens and activities that will keep you awake. Make sure the place where you sleep is cool, cozy, and dark. Cut down on coffee and smoking, especially in the evening, and don't eat big meals right before bed.
Do regular physical action, but wait a few hours before going to sleep to finish. Relaxation methods, like deep breathing or meditation, can help you deal with worry. Take fewer naps during the day, and if you do, make sure they are short. Watch how well you sleep and get help from a professional if you continue to have trouble. Setting up good sleep habits and dealing with the root reasons can help a lot with avoiding sleeplessness and getting better sleep generally.