I actually recently contributed Shadow DOM support to the HTMX cobebase for 2.0! Once that drops, linking Facet and HTMX will only take a simple mixin.
<template mixin="htmx" global>
<script on="connect">htmx.process(root)</script>
</template>