How can I know if I'm running inside temporal workflow when using the TypeScript SDK
You can use this:
import { inWorkflowContext } from '@temporalio/workflow'; if(inWorkflowContext()) { // ... }