What is the easiest way to edit multiple permissionOverwrites?

So far i have tried <TextChannel>.edit, but this overrides all current permissions.
So i've spread those into an array and then pushed the new overwrites into them, but that brings me to point 2:
this is for a close ticket command, thus the permissions i edit are for the member that created the ticket, and its setting the SendMessages permission to false
Now, if i spread the current permissions, and then add the updated ones, this means the array includes both the current permissions (in which the SendMessages permission is set to true), and the new one, in which it is set to false. Which one of these will override? I assume since the edited ones are the last to be pushed into the array, they will override but i'm unsure

Or am i making things overcomplicated (again) and is there a really easy way to do this that i'm looking over?
Was this page helpful?