if (upgradeOwned === true) {
setInterval(() => { clicks += 1; }, 3000);
}
It's something along the lines of this.