The Element.shadowRoot read-only property represents the shadow root hosted by the element.
Element.shadowRoot
MDN Reference