By for example destroying the enemy launch platforms. By intercepting enemy flights that would deploy those weapons. And specifically in case of F-35s, also by providing ELINT.
"Hypersonic" weapons used in current conflicts are nothing more than a glorified long range missiles that are useless if you can't launch them from the air. They're also currently statistically not significant due to their low amounts.