Believe it or not, it might be most effective to treat them like human children. Ghost-types and psychic-types tend to be highly intelligent, so they can sometimes comprehend discipline the way a younger human would.
That having been said, start off by explaining to them in a simple but calm and firm manner why their behavior is harmful. Perhaps explain to them that using hypnosis on you could actually hurt you, or ask them why they do it (other than because they think it’s funny). At this point, also try to determine why, specifically, this behavior is happening—whether it’s because they want your attention or because they’re bored or so forth. Once you determine the specific source, try to remedy that as well.
Rather than a permanent separation, consider a temporary time-out. Separate them for a short amount of time into two safe but relatively uninteresting parts of your home until they calm down. Once they do, explain to them again what specific parts of their behavior is unacceptable.
Implement “fun” activities into your routine, or make certain parts of it more exciting. The more fun your pokémon have (in ways you believe are acceptable), the less likely they’ll resort to pranks.
Finally, consider rewards. For every day they go without pulling a prank or engaging in negative behavior, give them a treat. This will also allow them to enjoy their day without engaging in bad behavior.
Ultimately, remember to be firm and calm. You’re correcting behavior, not punishing them, and there is very likely a reason why they’re engaging in this kind of behavior. If you assert yourself but show you’re willing to negotiate, it’ll be easier to control and unlearn bad habits such as these.
Best of luck, anonymous!