You can unfollow or mute users or block Twitter users altogether. The Twitter Safety Mode feature is another tool you might be able to use. If this tool is available to you from Privacy and safety settings, you can temporarily automatically block a user for posting harassing tweets.