function isNever(tsType) {
  const ts = /** @type {TypeScript} */ (getTypeScript())
  return (tsType.flags & ts.TypeFlags.Never) !== 0
}
Check if a given type is a never type or not.
@param {Type} tsType The type to check.