function isBooleanLike(tsType) {
  const ts = /** @type {TypeScript} */ (getTypeScript())
  return (tsType.flags & ts.TypeFlags.BooleanLike) !== 0
}
Check if a given type is an boolean-like type or not.
@param {Type} tsType The type to check.
@returns {boolean} `true` if the type is a boolean-like type.