Use of AbortController in reool

I am trying to invoke a Google Apps Script function (using fetch) which would take more than few minutes to complete, based on user's choice. Hence instead of waiting for the server process to complete / final result I would like to abort the fetch request based on the case.

I used AbortController but in Retool I am seeing message AbortController not defined. Please suggest how the use case can be achieved in Retool if AbortController will not work