function getOffsetAndLenFromRange(range) {
      const offset = range.start;
      const len = range.end - range.start + 1;

      return [offset, len];
    }
@param {import("range-parser").Range} range range
@returns {[number, number]} offset and length