All these can be fixed by the same method. All addictions are based on time, meaning the more time you spend with them or the more time they rob from you, strengthens the addiction and makes it harder to kick. Another part is dependency on them to make it through the day.
Some addictions are chemical based, while others are emotionally based.
The only true way to break an addiction is to get your mind off of the item you are addicted to and replace it with something that can consume you to the point of removing the addiction. The word is the best way. The point is to keep standing until you are free once and for all. Proverbs 4 Hear, ye children, the instruction of a father, and attend to know understanding. Romans 10 17.