function extsToGlob(exts) {
	if (exts.length > 1) {
		return `*.{${exts}}`;
	}

	return `*.${exts}`;
}
Convert an array of extensions to a glob pattern

Example: ['js', 'ts'] -> '*.{js,ts}'

@param {string[]} exts