Meaning: This sentence tells someone to prepare for bed by changing into sleepwear and turning off the lights.
Choice of Words: Pajamas are comfortable clothing worn for sleeping. Lights out means to turn off the lights. The sentence implies it's time to get ready for bed by putting on pajamas and turning off the lights.