Clear refinements on query change


I’m trying to clear refinements when the search query changes in the Magento 2 extension.

I can make a function to clear the 3 refinements in helper.state on search, but it seems like it would be better to just call the existing clearRefinements widget for each search. Is there a way to do that?