The item ID for Nightwear is 00225DA0
These are the spawn commands to give yourself Nightwear in Starfield.
Example spawn commands
Copy the command below and paste it into your Starfield game or server admin console to obtain.
Add item command: This command will spawn Nightwear in your inventory.
Place at me command: This command will spawn Nightwear in front of you.