export function findNodes ( element , selector ) { return element . querySelectorAll ( selector ) as NodeListOf < HTMLElement > ; } export function removeNode ( node ) { node . parentNode ?. removeChild ( node ) ; }