How does Omicron BA.1 infection impact the risk of reinfection with BA.5?

Researchers found prior exposure to SARS-CoV-2 Omicron sub-variants BA.1/BA.2 reduced the risk of breakthrough infection by its sub-variant BA.5.