You're right. "To wean somebody/yourself off something" means to gradually stop taking/eating/drinking it. We wean a baby when we gradually change its food from milk to more solid foods. An alcoholic needs to be weaned off alcohol. Most people can't just simply stop drinking alcohol suddenly. They need to drink less and less each day until finally they have none. The same goes for drugs and lithium is a drug.
Student or Learner