If you trust your doctor, there sure are a lot of pills out there for it.

https://www.drugs.com/condition/restless-legs-syndrome.html