Brief Description
In the source of @screeps/engine, we can see that StructurePowerBank,StructureKeeperLair,StructureInvaderCore are derived from OwnedStructure prototype. This was designed to support FIND_HOSTILE_STRUCTURES(especially PowerBank)

However, real players can never own those structures (in the official server).
We can add a new union of structures, excluding those unownable structures.
Considering that there is a Game.structures and typing it's value as AnyOwnedStructure is incorrect, it would be good to introduce this new union type.
Brief Description
In the source of @screeps/engine, we can see that

StructurePowerBank,StructureKeeperLair,StructureInvaderCoreare derived fromOwnedStructureprototype. This was designed to supportFIND_HOSTILE_STRUCTURES(especiallyPowerBank)However, real players can never own those structures (in the official server).
We can add a new union of structures, excluding those unownable structures.
Considering that there is a
Game.structuresand typing it's value asAnyOwnedStructureis incorrect, it would be good to introduce this new union type.