function getNodeOffsets(node) {
  // @ts-expect-error - see https://github.com/acornjs/acorn/issues/946
  return node;
}
Convenience method to get the `start` and `end` offsets for `node` provided
by acorn on top of ESTree types (keeping the type errors encapsulated).
@param {Node} node
@return {{start: number, end: number}}