Opioid withdrawal symptoms like anxiety and restlessness can start hours after your last dose and go on for days, and sometimes months.