function getReportComments(comments, elementRanges) {
  return comments.filter(
    (comment) =>
      !elementRanges.some(
        (range) => range[0] <= comment.range[0] && comment.range[1] <= range[1]
      )
  )
}
Get all comments that need to be reported
@param {(HTMLComment | HTMLBogusComment | Comment)[]} comments
@param {Range[]} elementRanges
@returns {(HTMLComment | HTMLBogusComment | Comment)[]}