The following should be read for 41 days by either the person who wants to change his / her ways, or someone else can read on behalf of the person that is addicted.
After reading the following ask Allah to relieve you if your addiction or bad habit.
If someone is reading on behalf of another person, then the person who is doing the Dua should mention the full name of the addicted person and that person's mother's name, for example:
Ya Allah relieve and cure {the addicted person's full name} son / daughter of {the addicted person's mother's name} of his / her bad habits. Ameen.
Read the following DAROOD 11 times

Next read the following DUA 11 times

Finally finish by reading the above DAROOD 11 times again.