Fetch API is not fetching and macro just stop

tried to use the Fetch API but it seems that the command is not recognized and the macro just stops.
Please find my code as per below:

import { fetch } from '@forge/api';

async function zylofetch() {
	const subscriptionId = 'XYZ';
	const resp = await fetch(`https://url/${subscriptionId}`,
		method: 'GET',
		headers: {
		  Authorization: 'Bearer USERID'
const status = result.status;
return status;

Can you please help?