There are two ways to reset a Nintendo Switch: a soft reset, which only takes a few seconds, or a factory reset, which will wipe all of your data.
There are multiple ways to unfreeze a Nintendo Switch, including closing and re-opening a frozen game or resetting the console.