Ok, so here is what happened: I rooted my phone bu using TWRP 126.96.36.199 and SuperSU 1.91. The reason i wanted to root my phone was to be able to use an app that you can only use if you have rooted your phone. When i rooted my phone and downloaded the app it said that i needed to uppdate my busybox so i downloaded a busybox installer from the appstore. When i tried to uppdate my busybox to the latest version it wouldnt work for some reason so i was going to re-root my phone with Superuser instead. However when I couldnt drag the Superuser folder into my sd card i started messing around in twerp recovery and being an idiot as i am i did a "Format data" in TWRP, when i did that obviusly everything got removed and now i don't have an os the only things i can do is booting into bootloader and TWRP otherwise my device is stuck on the HTC bootscreen. Also when i connect my phone to my computer nothing pops up so im guessing that my computer can't recognise it anymore.
I have using google but i couln't find anything. I will be monitoring this thread like a hawk so please help me.
Edit: Here is more information: I have S-on, it also says ***tampered*** and ***unlocked***
Edit2:If you need any more information for helping me please let me know and ill get it.
TL;DR: Rooted HTC One with SuperSU, Formatted data, no os, need help.