Associating a file type with a program can be done in several ways, such as using the Open with dialog and selecting the Always use this app to open checkbox, or via Default Programs or Default Apps.
New to Windows 11? We've got answers to all your questions - from system requirements to TPMs, Windows 12 expectations, and more - including those you didn't think to ask.