Any time I log out of website like [twitch.tv](https://twitch.tv) or gmail my account remains online permanently. I know this because i can check my chat lists on other accounts which shows their online status. I tried using Microsoft’s factory reset download on their website with a usb but the problem still persists. I have reason to believe the person that did this had physical access to my computer and modem network.
How do I go about fully cleansing my computer/modem/router to ensure the method the hacker is using has been completely removed? Whatever they are doing must be pretty advanced if it can survive a complete computer wipe