Retrieves the adjacent TabStacks of the given TabStack
Get adjacent tab stacks
if (!fin.me.isView) {
throw new Error('Not running in a platform View.');
}
const stack = await fin.me.getCurrentStack();
// Possible position inputs: 'right' | 'left' | 'top' | 'bottom'
const rightStacks = await stack.getAdjacentStacks('right');
const leftStacks = await stack.getAdjacentStacks('left');
console.log(`The TabStack has ${rightStacks.length} stacks to the right, and ${leftStacks.length} stacks to the left`);