export default function (element: HTMLElement, selectors: string | string[]) {
  if (!element) return null
  if (Array.isArray(selectors)) selectors = selectors.join(',')
  return element.closest(selectors)
}
