need help asap htc m8 missing os

If you have a TWRP backup, restore it. Otherwise you'll have to flash a ROM to the phone - the stock one or whichever one you prefer.
 
You really shouldn't be flashing a device if you have no clue as to what is going on. Try a Google search for your device.

Sent from my One M8 using Tapatalk