With TypeScript you can use WebPack to manage building the project. There is a skeleton set of files for a TypeScript project on GitHub to demonstrate building TypeScript applications with WebPack using Microsoft Visual Studio. Download it and place it on your computer such that your example demo folder looks like this:
Next, from a command window (for instance Windows PowerShell) go the folder and type npm install
Examine the src folder index.tsx file. To import the SDK you can use:
import * as IDaaS from '../sdk/idaas.gbg';
The next step is to obtain an IDP access token, and then exchange that for a GBG access token.