Every inhabitable room needs an escape route. A window is usually that rout.
The West Virginia Fire Commission has adopted statewide the IBC, IRC, IMC, IFGC, IPC, IPMC and IEBC for any jurisdiction that chooses to enforce codes.
https://windowwellexperts.com/irc-co...west-virginia/
So a bedroom without a window or a window that is not 5.7 square feet in area or less than 5 square feet below grade, violates the codes.

