Open the system settings menu gear icon from the toolbar under games and apps. The easiest but most permanent way to reset your switch is from the main menu.

How To Restart Your Nintendo Switch Console
How to restart switch. Hold down the power button on the top of your switch for a few seconds. On the home screen go to the system settings menu on the bottom of the screen its the icon that looks like a gear. Using a pin press and hold the reset button on the switch for 15 to 20 seconds. Select power options and choose turn off. To reset your switch without losing your save data youll need to turn your console off first. In this example sg350x 24 24 port gigabit stackable managed switch is used.
Complete these steps to display the power menu on a nintendo switch system press and hold the power button for at least three seconds. This is how you do it. Disconnect all ethernet cables from the switch. Select power options then choose to either turn off. Youll see a power menu appear. The good news is that its fairly easy to force restart the switch and should take no more than 20 seconds.
To factory reset your nintendo switch youll need to go under settings menu. If your console is completely unresponsive press and hold the power button at the top.