It can be treated with medications, but the first line of therapy is to correct the root causes, like
iron deficiency anemia or varicose veins. Also, good sleep hygiene measures can promote sleep and prevent symptoms of restless leg syndrome. Go to bed early almost at the same time every day, wake up at the same time, avoid smoking, alcohol, caffeinated beverages and exercise regularly.
Hope this helped and do keep us posted.