Change the voice: Close the windows before you go to bed.
Change the voice: Close the windows before you go to bed.
Explanation
The sentence is an imperative (command), and in passive voice, "must be" is commonly used for giving instructions.
"Close the windows" changes to "The windows must be closed" to keep the intended meaning and tense.