Using BTT to reduce false 'Tap To Click'/Bad Palm Rejection

Is it possible to turn off the Magic Trackpad 2 input while typing? This would solve the bad palm rejection that occurs when using the Magic Trackpad in front of the Magic Keyboard.
You could have a time delay setting to determine how long after typing stops to reenable Magic Trackpad input.