Wrapping ace bandages around my legs just above & below my knees helps to alleviate their inner urge to move.
One woman said she massaged her legs with some kind of cream (wish I could remember what it was) then slipped stretchy leg/ankle? Wraps over them, & this gave her a fairly good nights sleep.