What do you do?

I never know what to do at night when I'm on my period. I'm too scared to leave tampons in over night but I ALWAYS end up ruining my underwear. Usually I stuff a shit ton of toile paper in my underwear and put on spandex and leggings I know gross but I don't know what else to do. Do any of you sleep with a tampon in?