I've never had those, but I've heard that putting a bar of strongly scented soap (like lavender soap) under the covers in the general area of the feet) deters this kind of thing. Make sure you're not confusing those with normal muscle twitches that happen when we go to sleep.