Most of the cheats on this list require you to enable testing or debug cheats in-game before they can be activated. On Xbox One or PS4, hold all four shoulder buttons at once to open the cheat console. A text box will appear in the upper left of the screen for you to type in and enter your cheat commands. On PC, press Ctrl + Shift + C to open the cheat console. You don't even need to consider Star Wars mods (probably) with The Sims Star Wars expansion.
The Sims 4 is no exception, with a frankly staggering number of cheat codes and debug interactions that let you control even more aspects of your Sims' lives than you're technically supposed to. Cheats, glorious cheats: they're such a staple of The Sims series that it's hard to imagine playing without them.