How to add a device Microsoft account?
Add a trusted device to your Microsoft account
On the device you want to trust, go to the Security settings page and sign in to your Microsoft account.
You'll be prompted to enter a security code. Choose whether to receive the code through email, text, or an authenticator app. ...
Select the check box for I sign in frequently on this device. Don't ask me for a code.
I highlighted your question and right-clicked on it and did a google search... this is what came up