Another thing is not drinking caffeine AT ALL. My sleep quality got much better after I stopped drinking coffee. Strangely I can drink as much tea as I want but coffee makes me sleep badly.
Green tea (maybe others) has l-theanine which takes away the jittery feeling/anxiety of caffeine. Might be why. I really like caffeine + ltheanine pills.
Another thing is not drinking caffeine AT ALL. My sleep quality got much better after I stopped drinking coffee. Strangely I can drink as much tea as I want but coffee makes me sleep badly.