Start by understanding the mechanism being used on you. Most MMO progression runs on a stick-and-carrot loop: complete tasks, receive experience, gold, or gear, then repeat with slightly better stats until you qualify for the next tier of content. The carrot is meant to look like the level cap.
It never arrives. In a game like World of Warcraft there is always another tier of gear and another raid after the one you are chasing, so the finish line moves as fast as you do. Once you can see that structure for what it is, the pull weakens considerably.
Practically, that means setting a session limit before you log in, keeping a real-world commitment immediately after play, and noticing when you are playing out of habit rather than enjoyment. The game is designed by professionals to be hard to put down, and treating that as a design choice rather than a personal failing is the first useful step.