If you are old enough, you remember what JavaScript life was like before jQuery. That framework set up some of the functions we depend on in Vanilla JS to do the most basic work. Like event listeners. If you never met jQuery, please stick around as this isn’t framework specific.
I sat down to review some code with my colleagues. It was clear that each of these solutions was heavily over-engineered. Each used custom web components, React, Angular, or other framework, and even basic HTML with aria added. All of them should get slimmed down and work to reduce or remove ARIA.