removeSpansInGlobalOffsets(spans, { start, end }) {
        return domManager?.removeSpans(spans, start, end);
      }
Removes spans from the given array based on the provided start and end global offsets.

@param {Array} spans - The array of spans to be modified.
@param {Object} offsets - The start and end global offsets.
@param {number} offsets.start - The start global offset in codepoints.
@param {number} offsets.end - The end global offset in codepoints.
@returns {void} - Nothing is returned.