BWT, what are we doing to prevent tangles and knots in our hair overnight?

I’m a long haired lady and if I let a strand roam free when I sleep it’s going to turn into a tangle or knot overnight.

Do you have any tips on overnight hairstyles or anything else that’s helped you prevent knots and tangles overnight or in general?

Thanks BWT!!