New findings suggest that treating insomnia can stop opioid-seeking behavior, even after ending treatment.