This article explains how to connect a Meta Quest 2 to a PC via Air Link.
How to Use Air Link on Oculus Meta Quest 2 to Play Steam and Oculus VR Games
With your Quest 2 you can play games without having to connect it to a PC, but you can also use it as a wireless VR headset thanks to the Air Link feature.
Connecting to a PC via Air Link allows you to play VR games that aren’t available on Quest 2, as well as play PC versions of Quest 2 games with improved graphics and performance. Since the connection is wireless, you’ll maintain a full range of motion on your Quest 2 for room-scale gameplay.
Here's how to connect your Meta or Quest 2 to a PC wirelessly: