I googled for the relevant Apple instructions (for your future reference):
https://support.apple.com/en-us/HT201250
Here is the relevant section from the linked Apple instructions:
"
Restore everything from a Time Machine backup
To completely restore your Mac, use the “Restore from Time Machine Backup” utility in macOS Recovery. The disk you're restoring is erased before receiving the macOS and other contents of your Time Machine backup."