Mad Magazine answered that question back in the day. 😉
Star Trek hasn’t been much different in the lack of bathrooms. Bablyon 5 went out of their way to show a men’s room, IIRC.
In the EU, bathrooms are called refreshers or something.
On my second or third viewing of Star Wars, I did begin to wonder where the bathrooms were on the Death Star, and how Stormtroopers relieve themselves.
The original Dark Forces game had an answer though.