Have a towel handy at bedside.
When your foot or hamstring cramps, wrap the towel around your foot and pull upward on the ends. The cramps will "break" with the stretching. Hold the stretch for about 2 minutes and then gently relieve the stretch. Quinine
can prevent night cramps and used to be rx'd as the drug "quinaam", but w serious side effects, it was taken off the market. Stretching best.