
interaction.author.id in [id1,id2,........id300]
will return only Tweets and retweets created by the users with the specified IDs. If you are also looking for mentions of those users in Tweets and retweets, you should consider the following:
interaction.author.id in [id1,id2,........id300] OR
interaction.mention_ids in [id1,id2,........id300]