At first, I thought you could stop the interval from running, but this will only work if you can get to the context of the timer variable.
/* your code in another file */ clearInterval(timer);
My next idea is to redefine the autoRefresh function. It looks like that may be able to be done because the interval is referring to autoRefresh in a string instead of using a function, like
setInterval(function(){ autoRefresh(); }, 1000 * 60 * 3);
Anyway, you would have to redefine autoRefresh like this:
autoRefresh() { }