Meditate to stop inner chatter and insomnia. Meditate any time of day, but particularly when you’re close to the alpha and theta brain waves when you wake up or right before you get into bed, and then your brain will be trained to turn off when you turn in at night too. Over time you can quiet chatter within a few minutes. When you train your brain to go into a relaxed space you are controlling specific brain waves alpha rhythms (note you have three other brain waves beta, theta and delta) and the way your brain grows and operates.
The regions associated with attention and sensory processing thickens. Melatonin increases. You shift from fight-or-flight sympathetic nervous system to the rest-and-digest parasympathetic system. Try focusing on DEEP rhythmic breathing (did you know weight is expelled through water, heat and a big portion BREATHE?!) - 5-10 times through your nose all the way down to your belly (not just the lungs) holding for 5 seconds each time you breath in or out - additionally visualize the oxygen travelling all the way to various parts of your body like your toes with each breath in. Note that short shallow breaths can trigger stress/anxiety. OR try mindfulness exercises to focus on the present moment like taking in all your 5 senses while counting steps or eating. OR try quigong or Tai chi.