Do you have an asmdef file in your project? You may need to create one. You can then reference the Unity XR Management assembly by clicking the add button (
+
) in the Assembly Definition References for your Assembly Definition file (see image).

The Assembly name is actually Unity.XR.Management, although the namespace in code will be
using UnityEngine.XR.Management;