The item ID for Swimsuit is 00002FA4
These are the spawn commands to give yourself Swimsuit 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 Swimsuit in your inventory.
Place at me command: This command will spawn Swimsuit in front of you.