Command to remove Konsole tabs open in a specific work directory

I can kill their processes with a signal 9 but that isn’t the same as clicking the ‘x’ on the GUI (also it doesn’t actually close the tab, it just terminates the process). Any ideas?

I say ‘specific work directory’ because depending on the project I am working on, I need terminal tabs to be open in different places: I don’t want to kill the entire Konsole window as I always have other more general processes / tabs I still want to keep running