Remove code: use a helper for parsing ids argument
```typescript

function getShapeIdsFromArgs(arg: TLShapeId[] | TLShape[]): TLShapeId[] {
	return typeof arg[0] === 'string' ? (arg as TLShapeId[]) : (arg as TLShape[]).map((s) => s.id)
}
```

Saves \~200LOC in the Editor.ts file.