TxBuilder: build from typed parts
Pass parts such as output(), mint.native() and spend.plutus() with a payer to build(). Mesh resolves inputs, selects coins, sets the fee and change, adds collateral and evaluates Plutus scripts locally by default (Scalus, pure JavaScript). Amounts are bigint, so 5 where 5n belongs is a compile error.
In plain words: You write down what you want; Mesh fills in the forms correctly.
TxBuilder basics