function isReferenceObject(tsType) {
  const ts = /** @type {TypeScript} */ (getTypeScript())
  return (
    isObject(tsType) && (tsType.objectFlags & ts.ObjectFlags.Reference) !== 0
  )
}
Check if a given type is a reference type or not.
@param {Type} tsType The type to check.
@returns {tsType is TypeReference} `true` if the type is a reference type.